import request from "../utils/request";

export default {
  //生成订单
  creatOrder(courseId) {
    return request({
      url: `/eduorder/order/createOrder/${courseId}`,
      method: 'post',
    })
  },

  //根据订单ID查询订单信息
  getOrderInfo(id) {
    return request({
      url: `/eduorder/order/getOrderInfo/${id}`,
      method: 'get',
    })
  },
  //生成支付二维码的方法
  createNative(orderNo) {
    return request({
      url: `/eduorder/paylog/createNative/${orderNo}`,
      method: 'get',
    })
  },
  //查询订单状态
  querypayStatus(orderNo) {
    return request({
      url: `/eduorder/paylog/querypayStatus/${orderNo}`,
      method: 'get',
    })
  },
}
